<?php
 
function md5Password($password,$salt){
	return md5($password.$salt);
}

/**
 * @todo 随机获取定长的字符串
 * @param unknown_type $len
 * @return string
 */
function randStr($len=10){
	$arr = array('1','2','3','4','5','6','7','8','9','0','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
	$str = "";
	if(is_numeric($len) && $len > 0){
		for($i = 0; $i < $len; $i++){
			$n = rand(0, 35);
			$str .= $arr[$n];
		}
	}
	return $str;
}
